<template>
<!-- 商品信息 -->
  <div class="product-detail-xx">
    <p class="one">{{list.name}}</p>
    <p class="two">{{list.subtitle}}</p>
    <div class="content">
      <span class="three">￥{{list.price}}</span>
      <span class="four">库存 {{list.stock}} 件</span>
    </div>
  </div>
</template>

<script>
  export default {
    props:['list']
  }
</script>

<style lang="scss" scoped>
  .product-detail-xx{
    width: 100%;
    padding: 20px 30px;
    border-top: 1px solid #ddd;
    box-sizing: border-box;
  }
  .one{
    font-size: 40px;
    color: #333;
  }
  .two{
    font-size: 28px;
    color: #999;
    padding: 10px 0;
  }
  .three{
    font-size: 44px;
    color: #F63515;
  }
  .four{
    font-size: 32px;
    color: #999;
  }
  .content{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
</style>